FROM python:3.7-buster

ADD requirements.txt /
RUN pip install --no-cache-dir -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

ADD run.sh /root/run.sh
RUN chmod +x /root/run.sh

RUN mkdir -p /usr/src/app
ADD . /usr/src/app
WORKDIR /usr/src/app

ENTRYPOINT ["/root/run.sh"]
